gl: Change gdk_gl_context_check_version()
authorBenjamin Otte <otte@redhat.com>
Sat, 25 Dec 2021 13:14:52 +0000 (14:14 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 25 Dec 2021 14:07:44 +0000 (15:07 +0100)
commit2caab68be9669366d6c55c3064f75796d2552e0b
tree397e2abe31a0781fca68c98dffdd9bf2840a1762
parent4e2dbc12584c70f0d32fcd1b0bfab009d0828b22
gl: Change gdk_gl_context_check_version()

Instead of just passing major/minor, pass them twice, once for GL and
once for GLES. This way, we don't need to check for GL and GLES
separately.

If something is supported unconditionally, passing 0/0 works fine.

That said, I'd like to group the arguments somehow, because otherwise
it's just a confusing list of numbers - but I have no idea how to do
that.
gdk/gdkglcontext.c
gdk/gdkglcontextprivate.h
gsk/gl/gskglcommandqueue.c